import { createRouter, createWebHashHistory } from 'vue-router'
import Login from '../views/Login.vue'
import Index from '../views/Index.vue'

import HelloWorld from '../components/HelloWorld.vue'
import FeedbackList from '../views/feedback/FeedbackList.vue'
import StatisticsList from '../views/feedback/StatisticsList.vue'
import StatisticsInfo from '../views/feedback/StatisticsInfo.vue'
import FeedbackInfo from '../views/feedback/FeedbackInfo.vue'
import AssignFeedback from '../views/feedback/AssignFeedback.vue'
import ProvinceItemTotalStatis from '../views/statistics/ProvinceItemTotalStatis.vue'
import AqiDistributeTotalStatis from '../views/statistics/AqiDistributeTotalStatis.vue'
import AqiTrendTotalStatis from '../views/statistics/AqiTrendTotalStatis.vue'
import OtherTotalStatis from '../views/statistics/OtherTotalStatis.vue'
import SupervisorList from '@/views/member/supervisor/SupervisorList.vue'
import SupervisorRemarks from "@/views/member/supervisor/SupervisorRemarks.vue";
import SupervisorUpdate from "@/views/member/supervisor/SupervisorUpdate.vue";
import GridMemberList from '../views/member/GridMember/GridMemberList.vue'
import GridMemberRemarks  from "@/views/member/GridMember/GridMemberRemarks.vue";
import GridMemberUpdate from "@/views/member/GridMember/GridMemberUpdate.vue";

const routes = [
  {
    path: '/',
    name: 'home',
    component: Login
  },{
    path: '/login',
    name: 'Login',
    component: Login
  },{
    path: '/index',
    name: 'Index',
    component: Index,
    children: [
      {
        path: '/index',
        component: HelloWorld
      },{
        path: '/index/feedbackList',
        component: FeedbackList
      },{
        path: '/index/statisticsList',
        component: StatisticsList
      },{
        path: '/index/statisticsInfo',
        component: StatisticsInfo
      },{
        path: '/index/provinceItemTotalStatis',
        component: ProvinceItemTotalStatis
      },{
        path: '/index/aqiDistributeTotalStatis',
        component: AqiDistributeTotalStatis
      },{
        path: '/index/aqiTrendTotalStatis',
        component: AqiTrendTotalStatis
      },{
        path: '/index/otherTotalStatis',
        component: OtherTotalStatis
      },{
        path: '/index/feedbackInfo',
        component: FeedbackInfo
      },{
        path: '/index/assignFeedback',
        component: AssignFeedback
      },{
        path: '/index/supervisorList',
        component: SupervisorList
      }
      ,{
        path: '/index/gridMemberList',
        component: GridMemberList
      },
      {
        path: '/index/gridMemberRemarks',
        name: 'GridMemberRemarks',
        component: GridMemberRemarks,
      },{
        path: '/index/gridMemberUpdate',
        name: 'GridMemberUpdate',
        component: GridMemberUpdate,
      },{
        path: '/index/supervisorRemarks',
        component: SupervisorRemarks
      },{
        path: '/index/supervisorUpdate',
        component: SupervisorUpdate
      }

    ]
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
